package com.weipai.education.mapper;

import com.weipai.education.model.InventoryIn;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InventoryInMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(InventoryIn record);

    int insertSelective(InventoryIn record);

    InventoryIn selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InventoryIn record);

    int updateByPrimaryKey(InventoryIn record);

    List<Map<String,Object>> inventoryInList(@Param("start") Integer start, 
                                             @Param("end") Integer size, 
                                             @Param("goodsBarCode") String goodsBarCode, 
                                             @Param("spuNumber") String spuNumber, 
                                             @Param("startTime") String startTime, 
                                             @Param("endTime") String endTime, 
                                             @Param("userId") String userId);

    Integer inventoryInListMapper(@Param("goodsBarCode") String goodsBarCode, 
                                  @Param("spuNumber") String spuNumber, 
                                  @Param("startTime") String startTime, 
                                  @Param("endTime") String endTime, 
                                  @Param("userId") String userId);
}